module.exports = `
doctype html
html
  head
    meta(charset="utf-8")
    meta(name="viewport", content="width=device-width,initial-scale=1.0")
    title 好前端
    link(rel="shortcut icon" href="/static/img/logo.e1560e1.png")
    link(rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.css")
    link(rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css")
    link(rel="stylesheet" href="/css/markdown.css")
    link(rel="stylesheet" href="/css/atom-one-dark.css")
    link(rel="stylesheet" href="/css/doc.css")
  body
    #doc-container
      .doc-header
        a.btn.btn-default(href="/doc/"+ courseid)
          i.glyphicon.glyphicon-menu-left(style="margin-right: 5px")
          | 返回课程

      .nav-container
        each val, index in pages
          p.chepter-title
            a(class=(index + 1 == chepterid) ? 'active' : '', href="/courses/"+ courseid +"/chepter/"+(index + 1)) !{val}
          if index + 1 == chepterid
            .chepter-nav !{nav}
      .doc-body-container
        .doc-body.markdown-body !{body}
        .doc-footer.clearfix
          if chepterid != 1
            a.prev-page.pull-left.btn.btn-primary(href="/courses/"+ courseid +"/chepter/"+(+chepterid - 1)) !{pages[+chepterid - 1 - 1]}
          if chepterid != pages.length
            a.next-page.pull-right.btn.btn-primary(href="/courses/"+ courseid +"/chepter/"+(+chepterid + 1)) !{pages[+chepterid + 1 - 1]}
    script(src="https://cdn.bootcss.com/jquery/2.0.3/jquery.min.js")
    script(src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js")
    script(src="https://cdn.bootcss.com/clipboard.js/2.0.0/clipboard.min.js")
    script(src="/js/index.js")

`







